package cn.net.sinodata.common.core.constant;

/**
 * 通用常量信息
 *
 * @author yinliangyun
 */
public interface Constants {

    /**
     * UTF-8 字符集
     */
    String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    String GBK = "GBK";

    /**
     * www主域
     */
    String WWW = "www.";

    /**
     * http请求
     */
    String HTTP = "http://";

    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    String FAIL = "1";

    /**
     * 登录成功
     */
    String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    String LOGOUT = "Logout";

    /**
     * 注册
     */
    String REGISTER = "Register";

    /**
     * 登录失败
     */
    String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 顶级父级id
     */
    Long TOP_PARENT_ID = 0L;

    public static final String SPRING_ACTIVE_PROFILE_DEV = "dev";
    public static final String SPRING_ACTIVE_PROFILE_SIT = "sit";
    public static final String SPRING_ACTIVE_PROFILE_UAT = "uat";
    public static final String SPRING_ACTIVE_PROFILE_PP = "pp";
    public static final String SPRING_ACTIVE_PROFILE_PI = "pi";
    public static final String SPRING_ACTIVE_PROFILE_PRO = "pro";

    public static final String HAZELCAST_DEV_XML = "hazelcast-dev.xml";
    public static final String HAZELCAST_SIT_XML = "hazelcast-sit.xml";
    public static final String HAZELCAST_UAT_XML = "hazelcast-uat.xml";
    public static final String HAZELCAST_PP_XML = "hazelcast-pp.xml";
    public static final String HAZELCAST_PI_XML = "hazelcast-pi.xml";
    public static final String HAZELCAST_PRO_XML = "hazelcast-pro.xml";

}

